package com.smt.common.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * 任务通知切面类
 *
 * @author zhangyi
 * @date 2018/11/2 10:06
 */
@Aspect
@Component
@Slf4j
public class SendMailAspect {

    @Pointcut("@annotation(com.smt.modules.app.annotation.TaskNotice)")
    public void mailPoint(){}

    /**
     * 发送邮件通知操作
     *
     * @param joinPoint
     */
    @After("mailPoint()")
    public void sendMailNotice(JoinPoint joinPoint){

    }


}

